# Convenience library for the duplicated logging functionality
common_sources = [
    'common-logging.c',
    'common-governors.c',
    'common-profile.c',
    'common-splitlock.c',
    'common-external.c',
    'common-helpers.c',
    'common-gpu.c',
    'common-cpu.c',
    'common-pidfds.c',
    'common-power.c',
]

daemon_common = static_library(
    'daemon-common',
    sources: common_sources,
    install: false,
    include_directories: [config_h_dir]
)

link_daemon_common = declare_dependency(
    link_with: daemon_common,
    include_directories: [include_directories('.')]
)

lib_common = static_library(
    'lib-common',
    sources: [
        'common-helpers.c',
        'common-pidfds.c'
    ],
    install: false,
    include_directories: [config_h_dir]
)

link_lib_common = declare_dependency(
    link_with: lib_common,
    include_directories: [include_directories('.')]
)
